//
//  JShopCarShopModel.m
//  HeadIndustry
//
//  Created by jun on 2017/9/3.
//  Copyright © 2017年 jun. All rights reserved.
//

#import "JShopCarShopModel.h"

@implementation JShopCarShopModel

- (void)setCarItems:(NSArray *)CarItems
{
    _CarItems = CarItems;
    [self setValueForDetailModelDic];
}

- (void)setValueForDetailModelDic
{
    _goodsArray = [NSMutableArray array];
    
    if (self.CarItems.count > 0) {
        for (NSDictionary *dic in self.CarItems) {
            JShopCarDetailModel *model = [JShopCarDetailModel new];
            [model setValuesForKeysWithDictionary:dic];
            [self.goodsArray addObject:model];
        }
        
    }
}

@end
